package dc.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.alibaba.fastjson.JSONObject;

import dc.sys.dao.SysUserDao;
import dc.sys.facade.SysUserFacade;


@Service("sysUserService")
@com.alibaba.dubbo.config.annotation.Service(interfaceClass=dc.sys.facade.SysUserFacade.class,protocol={"rest","dubbo"})
public class SysUserService implements SysUserFacade {
	@Autowired
	private SysUserDao sysUserDao;

	@Override
	public String generateKey() throws Exception {
		
		return sysUserDao.generateKey();
	}

	@Override
	public JSONObject getById(String id) throws Exception {
		
		return sysUserDao.getById(id);
	}

	@Override
	public List<JSONObject> getList() throws Exception {
		
		return sysUserDao.getList();
	}

	@Override
	public int insert(JSONObject jsonObject) throws Exception {
		
		return sysUserDao.insert(jsonObject);
	}


}
